package com.vastcom.sigma.admin.dao;

import com.vastcom.sigma.admin.model.Cargocate;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface CargocateDao extends JpaRepository<Cargocate,String> {

    @Query("select c from Cargocate c where c.pid=:cargocateid order by c.basecode")
    List<Cargocate> getCargocatesByCargocateid(@Param("cargocateid")String cargocateid);

}
